package io.github.talelin.latticy.dto;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Getter
@Setter
public class DocumentDTO {
    @NotBlank
    @Length(min = 1)
    private String title;
    @NotBlank
    @Length(min = 1)
    private String content;

    private Integer sort;
}
